package com.tbit.uqbike.object.value;

import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @author jing
 * @date 2020/11/1711:56
 * @Description:
 */
@Data
@ToString
public class WeatherResponse {

    /**
     * code : 200
     * updateTime : 2020-11-17T11:36+08:00
     * fxLink : http://hfx.link/1u0z1
     * now : {"obsTime":"2020-11-17T11:00+08:00","temp":"25","feelsLike":"26","icon":"101","text":"多云","wind360":"135","windDir":"东南风","windScale":"2","windSpeed":"7","humidity":"69","precip":"0.0","pressure":"1008","vis":"30","cloud":"91","dew":"19"}
     * refer : {"sources":["Weather China"],"license":["no commercial use"]}
     */
    private String code;
    private String updateTime;
    private String fxLink;
    private NowBean now;
    private ReferBean refer;

    @Data
    @ToString
    public static class NowBean {
        /**
         * obsTime : 2020-11-17T11:00+08:00
         * temp : 25
         * feelsLike : 26
         * icon : 101
         * text : 多云
         * wind360 : 135
         * windDir : 东南风
         * windScale : 2
         * windSpeed : 7
         * humidity : 69
         * precip : 0.0
         * pressure : 1008
         * vis : 30
         * cloud : 91
         * dew : 19
         */

        private String obsTime;
        private String temp;
        private String feelsLike;
        private String icon;
        private String text;
        private String wind360;
        private String windDir;
        private String windScale;
        private String windSpeed;
        private String humidity;
        private String precip;
        private String pressure;
        private String vis;
        private String cloud;
        private String dew;

    }

    @Data
    @ToString
    public static class ReferBean {
        private List<String> sources;
        private List<String> license;
    }
}
